/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.CarCancelDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface CarCancelInterface {

    ArrayList<CarCancelDTO> readByAll();

    CarCancelDTO findByid(int id);

    CarCancelDTO findByCarOrderDetailid(int id);

    ArrayList<CarCancelDTO> findByDateCancel(String date);

    ArrayList<CarCancelDTO> findByDiscount(float discount);

    boolean create(CarCancelDTO dto);

    boolean update(CarCancelDTO dto);

    boolean delete(CarCancelDTO dto);

    boolean delete(int id);
}
